package com.ruoyi.eamp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.eamp.mapper.EampMeetingRoomMapper;
import com.ruoyi.eamp.domain.EampMeetingRoom;
import com.ruoyi.eamp.service.IEampMeetingRoomService;

/**
 * 会议室表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-08
 */
@Service
public class EampMeetingRoomServiceImpl implements IEampMeetingRoomService 
{
    @Autowired
    private EampMeetingRoomMapper eampMeetingRoomMapper;

    /**
     * 查询会议室表
     * 
     * @param roomId 会议室表主键
     * @return 会议室表
     */
    @Override
    public EampMeetingRoom selectEampMeetingRoomByRoomId(Long roomId)
    {
        return eampMeetingRoomMapper.selectEampMeetingRoomByRoomId(roomId);
    }

    /**
     * 查询会议室表列表
     * 
     * @param eampMeetingRoom 会议室表
     * @return 会议室表
     */
    @Override
    public List<EampMeetingRoom> selectEampMeetingRoomList(EampMeetingRoom eampMeetingRoom)
    {
        return eampMeetingRoomMapper.selectEampMeetingRoomList(eampMeetingRoom);
    }

    /**
     * 新增会议室表
     * 
     * @param eampMeetingRoom 会议室表
     * @return 结果
     */
    @Override
    public int insertEampMeetingRoom(EampMeetingRoom eampMeetingRoom)
    {
        return eampMeetingRoomMapper.insertEampMeetingRoom(eampMeetingRoom);
    }

    /**
     * 修改会议室表
     * 
     * @param eampMeetingRoom 会议室表
     * @return 结果
     */
    @Override
    public int updateEampMeetingRoom(EampMeetingRoom eampMeetingRoom)
    {
        return eampMeetingRoomMapper.updateEampMeetingRoom(eampMeetingRoom);
    }

    /**
     * 批量删除会议室表
     * 
     * @param roomIds 需要删除的会议室表主键
     * @return 结果
     */
    @Override
    public int deleteEampMeetingRoomByRoomIds(Long[] roomIds)
    {
        return eampMeetingRoomMapper.deleteEampMeetingRoomByRoomIds(roomIds);
    }

    /**
     * 删除会议室表信息
     * 
     * @param roomId 会议室表主键
     * @return 结果
     */
    @Override
    public int deleteEampMeetingRoomByRoomId(Long roomId)
    {
        return eampMeetingRoomMapper.deleteEampMeetingRoomByRoomId(roomId);
    }

    @Override
    public List<EampMeetingRoom> getroomIdList() {
        return eampMeetingRoomMapper.getroomIdList();
    }
}
